//
//  MPHomePageTableViewCell.m
//  SearchPeople
//
//  Created by zk on 16/5/6.
//
//

#import "MPHomePageTableViewCell.h"

#import <UIImageView+WebCache.h>


@implementation MPHomePageTableViewCell

- (void)ConfigWithDic:(NSDictionary *)Info
{
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@",Info[@"picture"]]];
    UIImage *image = [UIImage imageNamed:@"placeHolder"];
    [self.headerImageView sd_setImageWithURL:url placeholderImage:image];
    self.NameLabel.text = [NSString stringWithFormat:@"%@",Info[@"name"]];
    self.GenderLabel.text = [NSString stringWithFormat:@"%@",Info[@"mobile"]];
    self.PlaceLabel.text = [NSString stringWithFormat:@"%@",Info[@"address"]];
    if ([Info[@"type"] integerValue] == 1) {
        self.typeLabel.text = @"发现者";
    } else {
        self.typeLabel.text = @"寻人者";
    }
}

@end
